Skip to content

Conversation

@shrey150
Copy link

@shrey150 shrey150 commented Dec 12, 2025

What changed

  • Add getClaudeCodeApiKey() to retrieve token from system keychain
  • Support macOS Keychain, Windows Credential Manager, Linux secret storage
  • Fall back to ANTHROPIC_API_KEY env var if keychain not available
  • Update error messages with clear setup instructions

Testing strategy

Note: only tested on macOS

  • use env -i to create a new environment
  • test that it pulls from system keychain
  • if not in system keychain, error is shown
  • running claude setup-token then loads API key

Copy link
Member

@Kylejeong2 Kylejeong2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm,

only nit is are we going to use emojis in the console errors? seems very AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants